home *** CD-ROM | disk | FTP | other *** search
- unit uInputQuery;
-
- {
- *******************************************************************************
- * Descriptions: InputQuery with Unicode support
- * $Source: /cvsroot/fma/fma/uInputQuery.pas,v $
- * $Locker: $
- *
- * Todo:
- *
- * Change Log:
- * $Log: uInputQuery.pas,v $
- * Revision 1.1.2.1 2004/10/15 11:29:22 z_stoichev
- * Initial checkin.
- *
- *
- }
-
- interface
-
- uses
- Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
- Dialogs, StdCtrls, TntStdCtrls;
-
- type
- TfrmInputQuery = class(TForm)
- TntLabel1: TTntLabel;
- TntEdit1: TTntEdit;
- Button1: TButton;
- Button2: TButton;
- private
- { Private declarations }
- public
- { Public declarations }
- end;
-
- var
- frmInputQuery: TfrmInputQuery;
-
- function WideInputQuery(ACaption,ATitle: WideString; var DefaultText: WideString): boolean;
-
- implementation
-
- {$R *.dfm}
-
- function WideInputQuery(ACaption,ATitle: WideString; var DefaultText: WideString): boolean;
- begin
- with TfrmInputQuery.Create(nil) do
- try
- Caption := ACaption;
- TntLabel1.Caption := ATitle;
- TntEdit1.Text := DefaultText;
- Result := ShowModal = mrOk;
- if Result then DefaultText := TntEdit1.Text;
- finally
- Free;
- end;
- end;
-
- end.
-